import request from '@/utils/request'

// 查询营销费用列表
export function synData(query) {
  return request({
    url: '/marketing/BiMarketingCostDwd/synData',
    method: 'get',
    params: query
  })
}
// 查询营销费用列表
export function listBiMarketingCostDwd(query) {
  return request({
    url: '/marketing/BiMarketingCostDwd/list',
    method: 'get',
    params: query
  })
}
// 查询营销费用详细
export function getBiMarketingCostDwd(id) {
  return request({
    url: '/marketing/BiMarketingCostDwd/' + id,
    method: 'get'
  })
}

// 新增营销费用
export function addBiMarketingCostDwd(data) {
  return request({
    url: '/marketing/BiMarketingCostDwd',
    method: 'post',
    data: data
  })
}

// 修改营销费用
export function updateBiMarketingCostDwd(data) {
  return request({
    url: '/marketing/BiMarketingCostDwd',
    method: 'put',
    data: data
  })
}

// 删除营销费用
export function delBiMarketingCostDwd(id) {
  return request({
    url: '/marketing/BiMarketingCostDwd/' + id,
    method: 'delete'
  })
}
